package com.client.mapper;

import com.Emplyment.vo.StudyMaterialsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StudyMaterialsMapper {

    @Select("SELECT id, file_name, file_type, file_size FROM study_materials")
    List<StudyMaterialsVo> getStudyMaterials();

    @Select("SELECT id, file_name,file FROM study_materials WHERE id = #{id}")
    StudyMaterialsVo downloadStudyMaterials(Integer id);
}
